package com.szt.ynb.server.router.vo.base;

/***
 * 分页DTO
 * 
 * @author wwy
 *
 * @param <T>
 */
public class RepPageVO<T> {

	private int totalPage; // 总页数
	private int currentPage; // 当前页
	private int totalResult;//总记录数
	private Integer code;
	private T data;

	public int getTotalPage() {
		return totalPage;
	}

	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}

	public int getCurrentPage() {
		return currentPage;
	}

	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(ResultCode code) {
		this.code = code.getCode();
	}

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}

	public int getTotalResult() {
		return totalResult;
	}

	public void setTotalResult(int totalResult) {
		this.totalResult = totalResult;
	}

}
